#!/bin/bash
# Zaitan Module - Adobe-Flex Install
# Zaitan Team <http://code.google.com/p/zaitan/>

RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='3D'
RMOD_NAME='Adobe-Flex'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='2.44'
RMOD_DESCRIPTION='Installs Adobe-Flex'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'

# install Adobe-Flex

echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall


# Instala o Adobe-Flex

apt-get update
apt-get -y install sun-java6-jre sun-java6-plugin sun-java6-fonts

cd /usr/share/zaitan
wget -c http://download.macromedia.com/pub/flex/sdk/flex2_sdk_hf1.zip
mkdir flex
mv flex2_sdk_hf1.zip flex/
cd flex
unzip flex2_sdk_hf1.zip
cd frameworks


echo $RMOD_NAME Finibashed...

##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##

exit 0

